package com.jwthhealth_pub.old.sign.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

/**
 * user admin
 * pw 521621
 */

public class LoginModel {

    /**
     * code : 0
     * msg : 登陆成功
     * data : {"id":"10000000023","username":"mm14777777777","email":"","phone":"14777777777","truename":"","idcard":"","age":"28","birthday":"","address":"","city":"","province":"","company":"","education":"","sex":"女","height":"","weight":"","role":"10","iostoken":"","androidtoken":"-e4fae1480502176","status":"10","groupname":"普通用户"}
     */

    private String code;
    private String msg;
    private DataBean data;

    public void setCode(String code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public DataBean getData() {
        return data;
    }


    @DatabaseTable(tableName = "jwth_userinfo")
    public static class DataBean implements Serializable{

        public DataBean() {
        }

        public DataBean(String id, String username, String email, String phone, String truename, String idcard, String age, String birthday, String address, String city, String province, String company, String education, String sex, String height, String weight, String role, String iostoken, String androidtoken, String status, String groupname) {
            this.id = id;
            this.username = username;
            this.email = email;
            this.phone = phone;
            this.truename = truename;
            this.idcard = idcard;
            this.age = age;
            this.birthday = birthday;
            this.address = address;
            this.city = city;
            this.province = province;
            this.company = company;
            this.education = education;
            this.sex = sex;
            this.height = height;
            this.weight = weight;
            this.role = role;
            this.iostoken = iostoken;
            this.androidtoken = androidtoken;
            this.status = status;
            this.groupname = groupname;
        }

        /**
         * id : 10000000023
         * username : mm14777777777
         * email :
         * phone : 14777777777
         * truename :
         * idcard :
         * age : 28
         * birthday :
         * address :
         * city :
         * province :
         * company :
         * education :
         * sex : 女
         * height :
         * weight :
         * role : 10
         * iostoken :
         * androidtoken : -e4fae1480502176
         * status : 10
         * groupname : 普通用户
         */



        @DatabaseField
        private String id;
        @DatabaseField
        private String username;
        @DatabaseField
        private String email;
        @DatabaseField
        private String phone;
        @DatabaseField
        private String truename;
        @DatabaseField
        private String idcard;
        @DatabaseField
        private String age;
        @DatabaseField
        private String birthday;
        @DatabaseField
        private String address;
//        @DatabaseField
//        private String pic;
        @DatabaseField
        private String city;
        @DatabaseField
        private String province;
        @DatabaseField
        private String company;
        @DatabaseField
        private String education;
        @DatabaseField
        private String sex;
        @DatabaseField
        private String height;
        @DatabaseField
        private String weight;
        @DatabaseField
        private String role;
        @DatabaseField
        private String iostoken;
        @DatabaseField
        private String androidtoken;
        @DatabaseField
        private String status;
        @DatabaseField
        private String groupname;

        public void setId(String id) {
            this.id = id;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public void setTruename(String truename) {
            this.truename = truename;
        }

        public void setIdcard(String idcard) {
            this.idcard = idcard;
        }

        public void setAge(String age) {
            this.age = age;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public void setCompany(String company) {
            this.company = company;
        }

        public void setEducation(String education) {
            this.education = education;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public void setHeight(String height) {
            this.height = height;
        }

        public void setWeight(String weight) {
            this.weight = weight;
        }

        public void setRole(String role) {
            this.role = role;
        }

        public void setIostoken(String iostoken) {
            this.iostoken = iostoken;
        }

        public void setAndroidtoken(String androidtoken) {
            this.androidtoken = androidtoken;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public void setGroupname(String groupname) {
            this.groupname = groupname;
        }

        public String getId() {
            return id;
        }

        public String getUsername() {
            return username;
        }

        public String getEmail() {
            return email;
        }

        public String getPhone() {
            return phone;
        }

        public String getTruename() {
            return truename;
        }

        public String getIdcard() {
            return idcard;
        }

        public String getAge() {
            return age;
        }

        public String getBirthday() {
            return birthday;
        }

        public String getAddress() {
            return address;
        }

        public String getCity() {
            return city;
        }

        public String getProvince() {
            return province;
        }

        public String getCompany() {
            return company;
        }

        public String getEducation() {
            return education;
        }

        public String getSex() {
            return sex;
        }

        public String getHeight() {
            return height;
        }

        public String getWeight() {
            return weight;
        }

        public String getRole() {
            return role;
        }

        public String getIostoken() {
            return iostoken;
        }

        public String getAndroidtoken() {
            return androidtoken;
        }

        public String getStatus() {
            return status;
        }

        public String getGroupname() {
            return groupname;
        }

//        public String getPic() {
//            return pic;
//        }
//
//        public void setPic(String pic) {
//            this.pic = pic;
//        }
    }
}
